﻿<%@ Page Title="Estudios" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Estudios.aspx.vb" Inherits="Egresados_Estudios_Estudios" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:FormView ID="FormView1" runat="server" BorderColor="Black" 
                BorderStyle="None" BorderWidth="1.5px" CellPadding="4" 
                DataSourceID="ObjEgresados" FooterText=" " ForeColor="#333333" 
                Width="983px">
                <EditRowStyle BackColor="#999999" />
                <EmptyDataTemplate>
                    <table style="width: 100%;">
                        <tr>
                            <td class="style1">
                                <asp:Image ID="Image1" runat="server" ImageUrl="~/Imagenes/dialog_warning.png" 
                                    style="text-align: center" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                El Usuario actual no es Egresado. Si lo es acerquese a la oficina de Bienestar 
                                Universitario para su registro.</td>
                        </tr>
                        <tr>
                            <td class="style1">
                                &nbsp;</td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <FooterStyle BackColor="#2e4c0e" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#2e4c0e" Font-Bold="True" ForeColor="White" />
                <HeaderTemplate>
                    <h1 style="text-align:center; color:White; font-size:1.5em; font-weight:bold;">
                        Gestión de Estudios
                    </h1>
                </HeaderTemplate>
                <ItemTemplate>
                    <table class="Table" style="width:100%;">
                        <thead>
                            <tr>
                                <td class="style1" colspan="3" style="color:White; text-align:center;">
                                    Datos Personales</td>
                            </tr>
                        </thead>
                        <thead>
                            <tr>
                                <th class="style1">
                                    Tipo de Documento</td>
                                    <th class="style1">
                                        Documento</td>
                                        <th class="style3">
                                            Nombre(s) y Apellidos</td>
                                        </th>
                                    </th>
                                </th>
                            </tr>
                        </thead>
                        <tr>
                            <th class="style2">
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Nom_Tip_Doc") %>'></asp:Label>
                            </th>
                            <th class="style2">
                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("Cedula") %>'></asp:Label>
                            </th>
                            <th class="style4">
                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("Nom_Completo") %>'></asp:Label>
                            </th>
                        </tr>
                        
                    </table>
                </ItemTemplate>
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            </asp:FormView>
            <asp:ObjectDataSource ID="ObjEgresados" runat="server" 
                OldValuesParameterFormatString="original_{0}" SelectMethod="GetEgresado" 
                TypeName="Egresados"></asp:ObjectDataSource>
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="1">
                <asp:View ID="View1" runat="server">
                     <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                         ValidationGroup="Guardar" />
                     <table class="Table" style="width:100%;">
                        <thead>
                            <tr>
                                <td class="style1" colspan="3">
                                    datos del estudio</td>
                            </tr>
                        </thead>
                        <thead>
                            <tr>
                                <th class="style1">
                                    Institución<th class="style1">
                                        Tipo<th class="style3">
                                            titulo obtenido</th>
                                    </th>
                                </th>
                            </tr>
                        </thead>
                        <tr>
                            <th class="style2">
                                <asp:TextBox ID="TxtEmp" runat="server" Width="367px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="TxtEmp" ErrorMessage="Escriba la Institución" 
                                    ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            </th>
                            <th class="style2">
                                <telerik:RadComboBox ID="CmbTipo" Runat="server" Skin="WebBlue" 
                                    DataSourceID="ObjTipoE" DataTextField="NOM_TIPO" DataValueField="COD_TIPO_EST">
                                </telerik:RadComboBox>
                                <asp:ObjectDataSource ID="ObjTipoE" runat="server" 
                                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetRecords" 
                                    TypeName="Tipo_Estudios"></asp:ObjectDataSource>
                            </th>
                            <th class="style4">
                                <asp:TextBox ID="TxtJefe" runat="server" Width="254px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="TxtJefe" ErrorMessage="Escriba el Titulo Obtenido" 
                                    ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                            </th>
                        </tr>
                        <thead>
                         </thead>
                         <thead>
                         </thead>
                        
                    </table>
                     <table class="Table" style="width:100%;">
                         <thead>
                         </thead>
                         <thead>
                             <tr>
                                 <th class="style5">
                                     fecha de ingreso<th class="style7">
                                         fecha de culminación<th class="style3">
                                             duracion</th>
                                     </th>
                                 </th>
                                 <th class="style3">
                                     periodo</th>
                             </tr>
                         </thead>
                         <tr>
                             <th class="style6">
                                 <telerik:RadDatePicker ID="DtpFecI" Runat="server">
                                 </telerik:RadDatePicker>
                             </th>
                             <th class="style8">
                                 <telerik:RadDatePicker ID="DtpFecR" Runat="server" Font-Size="Smaller">
                                 </telerik:RadDatePicker>
                             </th>
                             <th class="style4">
                                 <telerik:RadNumericTextBox ID="TxtDur" Runat="server">
                                 </telerik:RadNumericTextBox>
                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                     ControlToValidate="TxtDur" ErrorMessage="Escriba el cargo desempeñado" 
                                     ValidationGroup="Guardar">*</asp:RequiredFieldValidator>
                             </th>
                             <th class="style4">
                                 <telerik:RadComboBox ID="CmbPeriodo" Runat="server" Skin="WebBlue" 
                                     DataSourceID="ObjEstudios" DataTextField="NOM_PERIODO" 
                                     DataValueField="COD_PERIODO">
                                 </telerik:RadComboBox>
                                 <asp:ObjectDataSource ID="ObjEstudios" runat="server" 
                                     OldValuesParameterFormatString="original_{0}" SelectMethod="GetRecords" 
                                     TypeName="Periodos"></asp:ObjectDataSource>
                             </th>
                         </tr>
                         <tr>
                             <td class="style6">
                                 &nbsp;</td>
                             <td class="style8">
                                 &nbsp;</td>
                             <td class="style4">
                                 <asp:ImageButton ID="ImageButton1" runat="server" Height="32px" 
                                     ImageUrl="~/Imagenes/save.png" ToolTip="Guardar" Width="32px" 
                                     ValidationGroup="Guardar" />
                                 <asp:ImageButton ID="ImageButton2" runat="server" 
                                     ImageUrl="~/Imagenes/undo.png" ToolTip="Volver" />
                             </td>
                             <td class="style4">
                                 &nbsp;</td>
                         </tr>
                         <thead>
                         </thead>
                         <thead>
                         </thead>
                     </table>
                     <br />
                </asp:View>
                <asp:View ID="View2" runat="server">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" DataKeyNames="Id" DataSourceID="ObjFacultades" 
                        ForeColor="#333333" GridLines="None" Width="983px" BorderColor="Black" 
                        BorderStyle="None" BorderWidth="1px" SkinID="gridView" >
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:BoundField DataField="Institucion" HeaderText="Institución" />
                            <asp:BoundField DataField="Nom_Tipo_Estudio" HeaderText="Tipo de Estudio" />
                            <asp:BoundField DataField="Titulo_Obtenido" HeaderText="Titulo Obtenido" />
                            <asp:BoundField DataField="Fecha_Ingreso" DataFormatString="{0:d}" 
                                HeaderText="Fecha de Ingreso" />
                            <asp:BoundField DataField="Fecha_Grado" DataFormatString="{0:d}" 
                                HeaderText="Fecha de Culminación" />
                            <asp:BoundField DataField="Duracion" HeaderText="Duración" />
                            <asp:BoundField DataField="Nom_Periodo" 
                                HeaderText="Periodo" />
                            <asp:ButtonField ButtonType="Image" CommandName="Editar" 
                                ImageUrl="~/Imagenes/Editar.png" Text="Editar" ItemStyle-Width="16" 
                                ItemStyle-Height="16" >                      
                            <ItemStyle Height="16px" Width="16px" />
                            </asp:ButtonField>
                            <asp:ButtonField ButtonType="Image" CommandName="Eliminar" Text="Eliminar" 
                                ImageUrl="~/Imagenes/remove.png" />
                        </Columns>
                    </asp:GridView>
                      <table align="center" style="width:100%;">
                          <tr>
                              <td class="style9">
                                  &nbsp;</td>
                              <th>
                                  <asp:ImageButton ID="ImageButton3" runat="server" 
                                      ImageUrl="~/Imagenes/document_new.png" />
                              </th>
                              <td>
                                  &nbsp;</td>
                          </tr>
                    </table>
                      <br />
                    <asp:ObjectDataSource ID="ObjFacultades" runat="server" 
                        SelectMethod="GetxEgresado" TypeName="Estudios" 
                        OldValuesParameterFormatString="original_{0}">
                    </asp:ObjectDataSource>
                    <asp:HiddenField ID="HfOper" runat="server" />
                    <asp:HiddenField ID="HfPK" runat="server" />
                    <br />
                </asp:View>
            </asp:MultiView>
            <br />
        </ContentTemplate>
    </asp:UpdatePanel>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
             </ajaxToolkit:ModalPopupExtender>
             <asp:Button ID="btn_Target" runat="server" style="display:none" />
                    <asp:Button style="DISPLAY: none" id="hiddenTargetControlForModalPopup" runat="server" __designer:wfdid="w98"></asp:Button> 
            <ajaxToolkit:ModalPopupExtender 
            id="ModalPopup" 
            runat="server" 
            TargetControlID="hiddenTargetControlForModalPopup" 
            BackgroundCssClass="modal" 
            DropShadow="True" 
            PopupControlID="programmaticPopup" 
            PopupDragHandleControlID="programmaticPopupDragHandle"
            BehaviorID="programmaticModalPopupBehavior">
            </ajaxToolkit:ModalPopupExtender> 
                <asp:Panel id="programmaticPopup" runat="server" 
                    Width="404px" Height="211px" 
                    CssClass="ModalPanel2" BackColor="White">
                    <asp:Panel id="programmaticPopupDragHandle" runat="Server" Height="30" 
                        __designer:wfdid="w101" CssClass="BarTitleModal2" BackColor="#2174BC"><DIV style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; VERTICAL-ALIGN: middle; PADDING-TOP: 5px">
                            <asp:Label ID="Label15" runat="server" Font-Bold="True" ForeColor="White" 
                                Text="SIEGRE"></asp:Label>
                        </DIV></asp:Panel> <DIV style="TEXT-ALIGN: center"><BR /><asp:Image id="ImgRst" runat="server" ImageUrl="~/imagenes/error.png" __designer:wfdid="w102" Width="64px" Height="64px"></asp:Image><br /> <asp:Label id="MsgModalPanel" runat="server" Width="278px" Height="33px" __designer:wfdid="w103" Text="Mensaje de Salida"></asp:Label><BR /><BR />
                        <asp:Button ID="Button1" runat="server" Text="Aceptar" />
                        &nbsp;<BR /> <BR /></DIV><BR /></asp:Panel>
             <asp:Button ID="Button2" runat="server" style="display:none" />
             <ajaxToolkit:ModalPopupExtender 
                    id="ModalPopupExtender1" 
                    runat="server" __designer:wfdid="w92" 
                    TargetControlID="Button2" 
                    BackgroundCssClass="modal" 
                    CancelControlID="BCancel" 
                    DropShadow="true" 
                    PopupControlID="Panel1" 
                    PopupDragHandleControlID="Panel2">
             </ajaxToolkit:ModalPopupExtender>
             <asp:Button ID="Button3" runat="server" style="display:none" />
                <asp:Panel 
                id="Panel1" 
                runat="server" 
                Width="410px" 
                Height="191px" 
                __designer:wfdid="w93" 
                CssClass="ModalPanel2" BackColor="White">
                    <asp:Panel 
                    id="Panel2" 
                    runat="server" 
                    Height="30px"
                    __designer:wfdid="w94" 
                    CssClass="BarTitleModal2" 
                    BackColor="#2174BC"> 
                    <div style="padding:5px; vertical-align: middle;">
                        <asp:Label ID="Label16" runat="server" Font-Bold="True" ForeColor="White" 
                            Text="SIEGRE"></asp:Label>
                    </div>
                    </asp:Panel> &nbsp; &nbsp;&nbsp; <BR />
                    <BR /><DIV style="TEXT-ALIGN: center">
                    <asp:Label id="Label11" runat="server" Width="315px" Height="51px" 
                            __designer:wfdid="w95">Realmente desea eliminar el registro?</asp:Label><BR />
                        <BR />
                        <br />
                    <asp:Button id="Button4" runat="server" Width="62px" __designer:wfdid="w96" 
                            Text="Si"></asp:Button> &nbsp; 
                    <asp:Button id="BCancel" runat="server" Width="62px" __designer:wfdid="w97" 
                            Text="No"></asp:Button> <BR /><BR /></DIV>
                    </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
</asp:Content>

